package com.itheima.jinjie.lianxi;

public class Student {
    String name;
    int age;
    String gegree;

    public Student() {
    }

    public Student(String name, int age, String gegree) {
        this.name = name;
        this.age = age;
        this.gegree = gegree;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGegree() {
        return gegree;
    }

    public void setGegree(String gegree) {
        this.gegree = gegree;
    }
    public void show(){
        System.out.println(name+","+age+","+gegree);
    }
    }
